package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.House;
import com.atguigu.vo.HouseQueryVo;
import com.atguigu.vo.HouseVo;
import com.github.pagehelper.PageInfo;

/**
 * @author lhh
 * @ClassName HouseService
 */

public interface HouseService extends BaseService<House> {

    /**
     * 发布状态改变
     * @param id
     * @param status
     * @return
     */
    int publish(Long id, Integer status);

    /**
     * 分页查询数据 条件
     * @param pageNum
     * @param pageSize
     * @param houseQueryVo
     * @return
     */
    PageInfo<HouseVo> findListPage(Integer pageNum, Integer pageSize, HouseQueryVo houseQueryVo);
}
